using System;

namespace ByteShower
{
    partial class Program
    {
        static void Warn(object o)
        {
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.Write(o);
        }
        static void Warn(string o, params object[] args)
        {
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.Write(o, args);
        }
        static void Error(object o)
        {
            Console.ForegroundColor = ConsoleColor.Magenta;
            Console.Write(o);
        }
        static void Error(string o, params object[] args)
        {
            Console.ForegroundColor = ConsoleColor.Magenta;
            Console.Write(o, args);
        }
        static void Note(object o)
        {
            Console.ForegroundColor = ConsoleColor.DarkGray;
            Console.Write(o);
        }
        static void Note(string o, params object[] args)
        {
            Console.ForegroundColor = ConsoleColor.DarkGray;
            Console.Write(o, args);
        }
        static void Format(object o)
        {
            Console.ForegroundColor = ConsoleColor.Blue;
            Console.Write(o);
        }
        static void Format(string o, params object[] args)
        {
            Console.ForegroundColor = ConsoleColor.Blue;
            Console.Write(o, args);
        }
        static void Info(object o)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.Write(o);
        }
        static void Info(string o, params object[] args)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.Write(o, args);
        }
        static void Data(object o)
        {
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.Write(o);
        }
        static void Data(string o, params object[] args)
        {
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.Write(o, args);
        }
        static void BackSpace(int number)
        {
            number++;
            Console.Write(
                new String('\b', number) + 
                new String(' ', number) + 
                new String('\b', number)
            );
        }
        static void BackSpace(string str) =>
            BackSpace(str.Length);
    }
}